package com.hz.userService.listener;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @author LiiiYiAn
 * @version 1.0
 * @createDate 2023-09-24 13:24
 * @projectName SchoolServicePlatformFinal
 * @className LoginListener
 * @description 读取队列消息
 */
@Component
public class LoginListener {

    @JmsListener(destination = "queue")
    public void saveLog(String queue) {
        System.out.println("用户 " + queue);
    }

}
